<?php
/**
 * @version SVN: $Id: builder.php 469 2011-07-29 19:03:30Z elkuku $
 * @package    Cyclemodules
 * @subpackage Tmpl
 * @author     Miguel Puig {@link freebandtech.com}
 * @author     Created on 17-Feb-2012
 * @license    GNU/GPL
 */

//-- No direct access
defined('_JEXEC') || die('');

$document = JFactory::getDocument();
$document->addScript(JURI::base() . 'modules/mod_cyclemodules/assets/jquery-1.7.1.min.js');
$document->addScript(JURI::base() . 'modules/mod_cyclemodules/assets/jquery.cycle.all.js');
$document->addScript(JURI::base() . 'modules/mod_cyclemodules/assets/cyclemodules.js');
$document->addStyleSheet(JURI::base() . 'modules/mod_cyclemodules/assets/cyclemodules.css');



$script = '
	jQuery("#cyclemodules_cont'.$module->id.'").cycle({ 
	    fx:     "'.$params->get( 'effect','fade').'", 
    	timeout: '.$params->get( 'time',2000 ).', 
    	delay:  '.$params->get( 'delay',2000 ).' 
	});';

$document-> addScriptDeclaration ($script);



$modules_final = ModCyclemodulesHelper::loadModules($params->get( 'position' ,'slide1'),$params->get( 'moduleclass_sfx' ),$module->id,$params->get( 'shuffle',0),$params->get( 'rendertype','raw'));


?>



  
